home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
utils
/
prtrk131
/
2_0009.pr
< prev
next >
Wrap
Text File
|
1994-08-27
|
447b
|
34 lines
$DESCRIPTION:
Version: 4.135
The scope resolusion operator is not resolving scope as it should. Consider the following code.
int a;
main()
{
int a;
a = 3;
::a = 2;
cout << "local a = " << a << "\n"
cout << "global a = " << ::a << "\n"
}
The code results in the output:
local a = 2
global a = 2
The output should be
local a = 3
global a = 2
$INVESTIGATION:
$RESOLUTION:
$VERIFICATION: